<template>
	<view>
		<tki-qrcode ref="qrcode" :val="val" :size="size" :lv="lv" :loadMake="loadMake" onval="true" />

		<!-- <button class="btn" type="primary" @click="switchBtn123">
		 	返回
		 </button> -->
	</view>
</template>

<script>
import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
import Global from '@/common/js/chat/config.js';
import Request_1 from '@/common/js/chat/Request.js';

export default {
	data() {
		return {
			val: '',
			size: 600,
			loadMake: true
		};
	},
	components: { tkiQrcode },
	onLoad() {
		var userinfo = Global.UserInfo();
		
		// console.log(JSON.stringify(userinfo))

		this.val = JSON.stringify({
			type: 'adduser',
			data: {
				id: userinfo.id,
				info: userinfo.paras
			}
		});
		
		console.log(this.val)

		console.log(JSON.stringify(userinfo));
	},
	methods: {
		switchBtn123() {
			uni.navigateBack({
				delta: 1
			});
		}
	}
};
</script>

<style>
.btn {
	margin: 30upx 0;
}

._qrCode {
	margin: 20% 0;
	border-radius: 8px;
	text-align: center;
}
</style>
